<%@page import="com.xxb.entity.Order"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.xxb.entity.OrderItem"%>
<%@page import="com.xxb.entity.User"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>达芙妮官方购物网-历史订单</title>
		<link type="text/css" href="style/ordercss.css" rel="stylesheet"/>
	</head>
	<body>
		<div class="header">
          <div class="logo"></div>
			<div class="login"> 
					<%
						User user = (User)session.getAttribute("curruser");
					 	if(user == null){
					 %> 
					<a href="main.jsp">您好，欢迎观临达芙妮官方购物网</a>&nbsp;&nbsp; 
	           		<a href="l_to_login.jsp">登陆</a> 
	                |
					<a href="l_to_reg.jsp">注册</a>
	           		<%}else{ %>
	           		<a href="main.jsp">您好，<%=user.getName() %></a>&nbsp;&nbsp;
	           		<a href="l_exit.jsp" >退出</a> 
	                |
					<a href="l_member.jsp" >会员管理平台</a>
	           		<%} %>  
			</div>
			<div class="menu">
				<ul>
					<li class="a" style="width:111px;"><a href="main.jsp">首页</a></li>
					<li class="b" style="width:95px;"><a href="#">新品</a></li>
					<li class="c" style="width:119px;"><a href="#">凉鞋</a></li>
					<li class="d" style="width:95px;"><a href="danxie.jsp">单鞋</a></li>
					<li class="e" style="width:95px;"><a href="#">靴子</a></li>
					<li class="f" style="width:119px;"><a href="#">包.饰品</a></li>
					<li class="g" style="width:119px;"><a href="#">特价专区</a></li>
				</ul>
				<div class="cart">
                    购物车（1）
					<a href="cart.jsp" style="text-decoration:none"><input type="button" value="去结算" style="cursor:pointer"/></a>
				</div>
			</div>
			<div class="search">
				<div class="hottag">
                 热门分类：&nbsp;
					<a href="danxie.jsp">单鞋</a>&nbsp;|&nbsp;
					<a href="#">高跟鞋</a>&nbsp;|&nbsp;
					<a href="#">鱼嘴</a>&nbsp;|&nbsp;
					<a href="#">平底</a>&nbsp;|&nbsp;
					<a href="#">坡跟</a>&nbsp;|&nbsp;
					<a href="#">真皮</a>
				</div>     
				<div class="searchinput">
					<input type="text" class="search-area"/>
					<input type="button" class="search-button"/>
				</div>	
			</div>
		</div>	
		<div id="content">
			<div class="left">
				<h1>会员管理平台</h1>
				<table class="member">
					<tr>
						<td style="border-bottom:1px solid #cccccc"><a href="#">订单管理</a></td>
					</tr>
					<tr>
						<td><a href="#">买家中心</a></td>
					</tr>
					<tr>
						<td class="color"><a href="#" style="margin-left:40px">我的信息修改</a></td>
					</tr>
					<tr>
						<td  class="color"><a href="#" style="margin-left:40px">我的收货地址</a></td>
					</tr>
					<tr>
						<td class="color"><a href="collect.jsp" style="margin-left:40px">我的收藏</a></td>
					</tr>
					<tr>
						<td class="color"><a href="l_to_changepwd.jsp" style="margin-left:40px">修改密码</a></td>
					</tr>
					<tr>
						<td style="border-bottom:1px solid #cccccc"><a href="#">积分礼品管理<a></td>
					</tr>
					<tr>
						<td><a href="#">咨询与投诉<a></td>
					</tr>
				</table>
			</div>
			<div class="right">
				<p style="margin:8px 0;">当前位置：<a href="main.jsp">首页</a>>会员管理平台>买家中心><b>订单管理</b></p>
				<div class="right1">
					<h1>我的收藏</h1>
					<div class="time">
						成交时间：
						<input type="text" style="width:100px"/>-<input type="text" style="width:100px" />
						订单号：<input type="text"/>
						<input type="button" style="background:url(images/btn_search.gif);cursor:pointer;width:57px;height:24px;border: 0 none;"/>
						
					</div>
					<p style="margin:6px 0 6px 15px">符合条件的订单共1条:</p>
					<table>
						<tr class="tr1">
							<td>订单编号</td>
							<td>订单状态</td>
							<td>订单金额</td>
							<td>购买数量</td>
							<td style="background:white;"></td>
						</tr>
						<%
							List<OrderItem> itemlist = (List<OrderItem>)request.getAttribute("itemlist");
							if(itemlist.size() != 0){
								for(OrderItem item:itemlist){
						 %>
						<tr>
							<td><%=item.getOid() %></td>
							<td><%=item.getOrder().getState() %></td>
							<td><%=item.getTotalprice() %></td>
							<td><%=item.getPnum() %></td>
						</tr>
						<%}} %>
					</table>
				</div>
			</div>
		</div>
		<div id="footer">
			<img src="images/tel.jpg" style="float:right"/><br/>
			<img src="images/footer.PNG" style="margin-top:10px;"/>
			<div class="footerf">
				<img src="images/foot-logo.jpg" style="float:right"/>	
			</div>
			<div style="margin-top:27px;float:right">
				<img src="images/oo.PNG" style="float:right"/>
			</div>
		</div>
	</body>
</html>
